package com.pan.admin.module.loanConfig.entity;

import com.pan.admin.common.annotation.Excel;
import com.pan.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户注册要素字段配置对象 loan_register_field
 *
 * @author ts
 * @date 2023-09-08
 */
public class LoanRegisterField extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 注册要素字段名称
     */
    @Excel(name = "注册要素字段名称")
    private String name;
    /**
     * 字段类型
     */
    @Excel(name = "注册要素字段名称")
    private Integer viewType;


    /**
     * 最小长度
     */
    @Excel(name = "最小长度")
    private Long limitMin;

    /**
     * 最大长度
     */
    @Excel(name = "最大长度")
    private Long limitMax;

    /**
     * 映射属性名称
     */
    @Excel(name = "映射属性名称")
    private String mappingName;

    /**
     * 校验规则(正则表达式)
     */
    @Excel(name = "校验规则(正则表达式)")
    private String regular;

    public Integer getViewType() {
        return viewType;
    }

    public Long getLimitMin() {
        return limitMin;
    }

    public void setLimitMin(Long limitMin) {
        this.limitMin = limitMin;
    }

    public Long getLimitMax() {
        return limitMax;
    }

    public void setLimitMax(Long limitMax) {
        this.limitMax = limitMax;
    }

    public String getMappingName() {
        return mappingName;
    }

    public void setMappingName(String mappingName) {
        this.mappingName = mappingName;
    }

    public void setViewType(Integer viewType) {
        this.viewType = viewType;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setRegular(String regular) {
        this.regular = regular;
    }

    public String getRegular() {
        return regular;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("regular", getRegular())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("viewType", getViewType())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
